package com.ruoyi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import com.github.fppt.jedismock.RedisServer;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.oas.annotations.EnableOpenApi;

import java.io.IOException;

/**
 * 启动程序
 * 
 * @author ruoyi
 */

@EnableOpenApi
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class RuoYiApplication
{
    public static void main(String[] args)
    {
//        try {
//            RedisServer.newRedisServer(6379).start();
//        } catch (IOException e) {
//            throw new RuntimeException(e);
//        }
        System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("\n" +
                "    __    _                __              \n" +
                "   / /   (_)___  ____ _   / /   ____ _____ \n" +
                "  / /   / / __ \\/ __ `/  / /   / __ `/ __ \\\n" +
                " / /___/ / / / / /_/ /  / /___/ /_/ / / / /\n" +
                "/_____/_/_/ /_/\\__, /  /_____/\\__,_/_/ /_/ \n" +
                "              /____/                        LINGLAN@2024 "+
                "\n 启动成功");
    }
}
